#pragma once

// taucs.h will define min/max macros if it's not already done (e.g. by Windows.h).
#ifndef min
    #define TAUCS_DEFINES_MIN
#endif
#ifndef max
    #define TAUCS_DEFINES_MAX
#endif

// TAUCS is a C library
extern "C" {
    #include <taucs.h>
}

// Undefine Taucs' min/max macros to avoid an error
// with std::min()/std::max() calls in standard C++ headers.
#ifdef TAUCS_DEFINES_MIN
    #undef min
#endif
#ifdef TAUCS_DEFINES_MAX
    #undef max
#endif